package fr.generali.sas.service.provider;

import org.springframework.stereotype.Component;

@Component("inMemorySequenceProvider")
public class InMemorySequenceProvider implements SequenceProvider {
	private static int SEQUENCE = 0;

	public synchronized int getNextSequenceNumber() {
		return ++SEQUENCE;
	}

	public int getCurrentSequenceNumber() {

		return SEQUENCE;
	}
}
